home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / System / Swatch / Development / swatch 1.7 / window.h < prev   
Encoding:
C/C++ Source or Header  |  1992-06-05  |  1.3 KB  |  61 lines  |  [TEXT/KAHL]

  1. /**
  2.  
  3.     window.h
  4.     Copyright (c) 1990-1992, joe holt
  5.  
  6.  **/
  7.  
  8.  
  9. #ifndef __window__
  10. #define __window__
  11.  
  12. /*******************************************************************************
  13.  **
  14.  **    Public Macros
  15.  **
  16.  **/
  17.  
  18. #ifndef __ctypes__
  19. #include "ctypes.h"
  20. #endif
  21.  
  22.  
  23. /*******************************************************************************
  24.  **
  25.  **    Public Variables
  26.  **
  27.  **/
  28.  
  29. typedef void (*MBox_proc_t)( Rect *r );
  30. extern WindowPtr App_window;
  31. extern ControlHandle horiz_scroll, vert_scroll;
  32. extern int16 MBox_right;
  33.  
  34.  
  35. /*******************************************************************************
  36.  **
  37.  **    Public Functions
  38.  **
  39.  **/
  40.  
  41. void Window_init( void );
  42. void Window_idle( void );
  43. Boolean Window_mousedown( EventRecord *the_event, int16 part );
  44. void Window_update( EventRecord *the_event );
  45. void Window_activate( EventRecord *the_event, Boolean active_state );
  46. void Window_close( void );
  47.  
  48. ControlHandle Window_horiz_scroll( void );
  49. ControlHandle Window_vert_scroll( void );
  50. Boolean Window_reset_horiz_scroll( void );
  51. void Window_reset_vert_scroll( void );
  52.  
  53. void Window_set_mbox( MBox_proc_t *handler );
  54. void Window_erase_mbox( void );
  55. void Window_update_mbox( void );
  56.  
  57. void Window_clip_with_controls( void );
  58. void Window_clip_without_controls( void );
  59.  
  60. #endif  /* ifndef _H_SWATCH_WINDOW */
  61.